package com.lfz.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lfz.demo.common.enums.CensusTimeEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lfz
 * @date 2025/2/28 17:15
 */
@TableName("china_total")
@Data
public class ChinaTotal implements Serializable {
    private Integer id;
    private CensusTimeEnum censusTime;
    private Integer totalPopulation;
    private Integer totalBirthNum;
    private Integer totalDeadNum;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date updateTime;
}
